public class text {
    public static void main(String[] args) {
        String s = "weegft";
        StringBuffer stringBuffer = new StringBuffer(s);
        System.out.println(s);

        stringBuffer.deleteCharAt(3);
        System.out.println(stringBuffer);
    }
}
